package org.ko.core.domain.support;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

import org.ko.core.websupport.log.LogLevel;

/**
 * 
 * @author zengxm 2014-8-21
 */
@Entity
@Table(name="sys_loginfo")
@SuppressWarnings("serial")
public class LogInfo extends BaseEntity{
	public static final String REMARK = "LogInfo_Remark";
	
	private String userName;
	private int userId;
	private String message;
	private LogLevel level;
	private String remark;
	private Date date;
	private String category;			//分类
	
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	@Enumerated(EnumType.STRING)
	public LogLevel getLevel() {
		return level;
	}
	public void setLevel(LogLevel level) {
		this.level = level;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
}